package cn.com.dcsgo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 添加或修改购物车中商品请求参数
 *
 * @author Dcsgo
 * @since 2025/11/14 17:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "添加或修改购物车中商品请求参数")
public class BasketDTO {
    /**
     * 购物项ID
     */
    @Schema(description = "购物项ID")
    private Long basketId;

    /**
     * 店铺ID
     */
    @Schema(description = "店铺ID")
    private Long shopId;

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空")
    @Schema(description = "商品ID")
    private Long prodId;

    /**
     * SKU ID
     */
    @NotNull(message = "SKU ID不能为空")
    @Schema(description = "SKU ID")
    private Long skuId;

    /**
     * 商品购买数量
     */
    @NotNull(message = "商品数量不能为空")
    @Schema(description = "商品购买数量")
    private Integer prodCount;
}
